package Test;

/**
 * Created by 春旺 on 2017/4/13.
 */
 class test05
{
    class Some{
    void doService(){
        System.out.println("some service");
    }
}
    class Other extends Some{
        @Override
        void doService(){
            System.out.println("others srrvice");
        }
    }
    class Main{
        public void main(String[] args){
            Other other = new Other();
            other.doService();
        }
    }

}
